public class Student {

    public String getName() {
        return name;
    }

    public int getStudentNumber() {
        return studentNumber;
    }

    public int getClassID() {
        return classID;
    }

    public String getSex() {
        return sex;
    }

    public int getAge() {
        return age;
    }

    public String getCharacter() {
        return character;
    }

    public String name;
    public int studentNumber;
    public int classID;
    public String sex;
    private int age;
    private String character;

    public void GetInfo(){
        System.out.println("这个学生的姓名是" + name + "，这个学生的学号是" + studentNumber + "，这个学生的班级是" + classID + "，这个学生的性别是" + sex + "，这个学生的年龄是" + age + "，这个学生的性格" + character);
    }

    public static void main(String[] args) {
        Student stu1 = new Student();
        stu1.name = "周玫林";
        stu1.studentNumber = 23;
        stu1.classID = 2010;
        stu1.sex = "女";
        stu1.age = 19;
        stu1.character = "开朗。";
        stu1.GetInfo();

        Student stu2 = new Student();
        stu2.name = "吴名";
        stu2.studentNumber = 2;
        stu2.classID = 2010;
        stu2.sex = "男";
        stu2.age = 19;
        stu2.character = "内向。";
        stu2.GetInfo();

        Student stu3 = new Student();
        stu3.name = "阳苗";
        stu3.studentNumber = 4;
        stu3.classID = 2010;
        stu3.sex = "男";
        stu3.age = 18;
        stu3.character = "活泼。";
        stu3.GetInfo();
    }
}
